package edu.ustb.mapper.user;

import edu.ustb.domain.user.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersDao {
    int deleteByPrimaryKey(Integer userId);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);

    List<Users> findAll();

    Users findBy(String userName);

    Users findByPhoneNum(String userPhone);

    Users findByEmail(String userEmail);

    int add(Users users);

    List<Users> verifyByMail(String info, String mail);

    int updateById(Integer userId, String password);
}